﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Techdays2013.Models
{
    public class DataService
    {
        public static List<Contact> LoadContacts()
        {
            List<Contact> contacts = new List<Contact>();

            contacts.Add(new Contact("Julie", "Knibbe", "Technical Evangelist", "Microsoft France", "@julieknibbe", new Uri("/Assets/Images/julaie.png", UriKind.Relative)));
            contacts.Add(new Contact("Samuel", "Blanchard", "Windows Phone MVP", "Naviso", "@samoteph", new Uri("/Assets/Images/samoteph.png", UriKind.Relative)));
            contacts.Add(new Contact("Jean-Sébastien", "Dupuy", "Technical Evangelist", "Microsoft France", "@dupuyjs", new Uri("/Assets/Images/jdupuy.png", UriKind.Relative)));

            return contacts.OrderBy(item => item.Prenom).ToList();
        }

        public static List<Personnage> LoadPersonnages()
        {
            List<Personnage> personnages = new List<Personnage>();

            // Maison Stark - "Winter Is Coming"
            personnages.Add(new Personnage("Eddard", "Stark", "Stark", "Port-Réal"));
            personnages.Add(new Personnage("Catelyn", "Stark", "Stark", "Winterfell"));
            personnages.Add(new Personnage("Robb", "Stark", "Stark", "Winterfell"));
            personnages.Add(new Personnage("Sansa", "Stark", "Stark", "Port-Réal"));
            personnages.Add(new Personnage("Arya", "Stark", "Stark", "Port-Réal"));
            personnages.Add(new Personnage("Bran", "Stark", "Stark", "Winterfell"));
            personnages.Add(new Personnage("Rickon", "Stark", "Stark", "Winterfell"));
            personnages.Add(new Personnage("Jon", "Snow", "Stark", "The Wall"));

            // Maison Lannister - "Hear Me Roar !"
            personnages.Add(new Personnage("Tywin", "Lannister", "Lannister", "Castral Roc"));
            personnages.Add(new Personnage("Jaime", "Lannister", "Lannister", "Port-Réal"));
            personnages.Add(new Personnage("Cersei", "Lannister", "Lannister", "Port-Réal"));
            personnages.Add(new Personnage("Tyrion", "Lannister", "Lannister", "Port-Réal"));

            // Maison Baratheon - "Ours Is The Fury"
            personnages.Add(new Personnage("Robert", "Baratheon", "Baratheon", "Port-Réal"));
            personnages.Add(new Personnage("Joffrey", "Baratheon", "Baratheon", "Port-Réal"));
            personnages.Add(new Personnage("Myrcella", "Baratheon", "Baratheon", "Port-Réal"));
            personnages.Add(new Personnage("Tommen", "Baratheon", "Baratheon", "Port-Réal"));
            personnages.Add(new Personnage("Stannis", "Baratheon", "Baratheon", "Peyredragon"));
            personnages.Add(new Personnage("Renly", "Baratheon", "Baratheon", "Accalmie"));

            // Maison Greyjoy - "We do not sow"
            personnages.Add(new Personnage("Balon", "Greyjoy", "Greyjoy", "Îles de Fers"));
            personnages.Add(new Personnage("Asha", "Greyjoy", "Greyjoy", "Îles de Fers"));
            personnages.Add(new Personnage("Theon", "Greyjoy", "Greyjoy", "Îles de Fers"));

            // Maison Targaryen - "Fire and Blood"
            personnages.Add(new Personnage("Viserys", "Targaryen", "Targaryen", "Peyredragon"));
            personnages.Add(new Personnage("Daenerys", "Targaryen", "Targaryen", "Peyredragon"));
            personnages.Add(new Personnage("Aemon", "Targaryen", "Targaryen", "The Wall"));

            // Maison Tully - "Family, Duty, Honor"
            personnages.Add(new Personnage("Hoster", "Tully", "Tully", "Vivesaigues"));
            personnages.Add(new Personnage("Edmure", "Tully", "Tully", "Vivesaigues"));
            personnages.Add(new Personnage("Brynden", "Tully", "Tully", "Vivesaigues"));

            // Maison Tyrell - "Growing Strong"
            personnages.Add(new Personnage("Olenna", "Tyrell", "Tyrell", "Hautjardin"));
            personnages.Add(new Personnage("Mace", "Tyrell", "Tyrell", "Hautjardin"));
            personnages.Add(new Personnage("Alerie", "Hightower", "Tyrell", "Villevieille"));
            personnages.Add(new Personnage("Mina", "Tyrell", "Tyrell", "Hautjardin"));
            personnages.Add(new Personnage("Janna", "Tyrell", "Tyrell", "Hautjardin"));

            // Maison Arryn - "As High As Honor"
            personnages.Add(new Personnage("Jon", "Arryn", "Arryn", "Port-Réal"));
            personnages.Add(new Personnage("Lysa", "Arryn", "Arryn", "Les Eyrié"));
            personnages.Add(new Personnage("Robert", "Arryn", "Arryn", "Les Eyrié"));

            return personnages.OrderBy(item => item.Prenom).ToList();
        }
    }
}
